package com.wp.admin.service;

import com.wp.admin.pojo.SysUser;
import com.wp.common.vo.PageRequest;
import com.wp.common.vo.PageResult;
import com.wp.model.admin.input.dto.SaveUserInputDTO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

/**
 * @author wp
 * @create 2019-03-03 15:47
 */
public interface SysUserService {

    SysUser findByUserName(@RequestParam String userName);

    Set<String> findPermissionsByUserName(String userName);

    SysUser findUserById(Long userId);

    PageResult<SysUser> findPage(PageRequest pageRequest);

    void saveUser(SaveUserInputDTO saveUserInputDTO);
}
